package com.lc.service.impl;

import com.lc.bean.Commodity;
import com.lc.dao.CommodityDao;
import com.lc.dao.impl.CommodityDaoImpl;
import com.lc.service.CommodityService;

import java.util.List;

/**
 * @description:
 * @author: ManolinCoder
 * @time: 2021/8/19
 */
public class CommodityServiceImpl implements CommodityService {
    private CommodityDao commodityDao = new CommodityDaoImpl();

    //调用dao层方法
    @Override
    public List<Commodity> getAllCommodities() {
        return commodityDao.selectAllCommodities();
    }
}
